import {SETTOKEN,ADDCOUNTER,REDUCECOUNTER,SETVALUE} from './mutation-type'
export default {
    [SETTOKEN](state,payload){
        state.loginToken=payload
      },
      // 购物车中的件数
      [ADDCOUNTER](state){
        state.counter++;
      },
      [REDUCECOUNTER](state){
        state.counter--;
      },
      [SETVALUE](state,payload){
        state.value=payload;
      }
      // //用户名
      // [UPDATEUSERNAME](state,name){
      //   state.username=name;
      // }

      
}